package alan.springboot2x.swagger.knife4j.service;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;

/**
 * @author Alan
 */
public abstract class IAsyncService {

    public Future<String> getNameTest(String name){
        return this.getName(name);
    }

    /**
     * getName
     * @param name
     * @return
     */
    public abstract Future<String> getName(String name);

    /**
     * getAge
     * @return
     */
    public abstract Future<Integer> getAge();

}
